package com.colorlight.cloud.complete.entity.po;

import com.colorlight.cloud.gateway.api.message.constraint.basics.object.Trans;
import com.colorlight.iot.proto.complete.entity.CompleteEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RelayCondition implements Trans<RelayCondition, CompleteEntity.RelayCondition> {

    /**
     * 继电器编号
     */
    private String relayNumber;

    /**
     * 是否启用自动控制
     */
    private Boolean enableAuto;

    /**
     * 继电器延迟时间
     */
    private Integer delayTime;

    /**
     * 监控源
     */
    private RelayMonitor monitor;

    /**
     * 温度阈值
     */
    private Integer temperatureThreshold;

    /**
     * 烟雾浓度阈值
     */
    private Integer smokeThreshold;
}

